package com.itfly.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName event_management
 */
@Data
public class EventManagement implements Serializable {
    private Integer id;
    private Integer categoryId;
    private Integer userId;
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endDate;

    private String description;

    // 将 level 和 status 声明为 String 类型
    private String level;
    private String status;
    //一对一
    private EventCategories eventCategories;

    private static final long serialVersionUID = 1L;
}